FROM ceagle/ubuntu20.04.3-go1.20.2:v1.0
MAINTAINER ceagle "ceaglechina@foxmail.com"
#FROM ubuntu
# 替换ubuntu源
RUN  sed -i s@/archive.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.list
RUN  apt-get clean
RUN apt-get update
# 安装net工具,ifconfig等
RUN apt-get install net-tools
RUN apt-get install curl -y

ENV MY_SERVICE_PORT=8080
ADD bin/amd64/httpserver /httpserver
ENTRYPOINT /httpserver